<div class="container">
	<div class="demo-row">
		<div class="row">
				<div class="col-lg-8">
					<div class="form-group">
						<div class="input-group">
							<input type="text" class="form-control" placeholder="Search" ng-model="searchTransaction">
							<span class="input-group-btn">
								<button type="submit" class="btn"><span class="fui-search"></span></button>
							</span>
						</div>
					</div>
				</div>
			</div>
			
			<hr>
			
			<div class="alert alert-info" ng-show="listTransaction.length == 0">
				No Transaction found
			</div>
		
			<table class="table table-hover table-striped table-bordered" ng-show="listTransaction.length > 0">
				<thead>
					<tr>
						<th>Id Transaction</th>
						<th>Id Customer Sent</th>
						<th>Id Customer Receive</th>
						<th>Id Account Sent</th>
						<th>Id Account Receive</th>
						<th>Date transaction</th>
						<th>Amount</th>
						<th>Status Transaction</th>
						<th>Report</th>
					</tr>
				</thead>
				<tbody>
					<tr ng-repeat="tr in listTransaction | filter:searchTransaction">
						<td>{{tr.idtransaction}}</td>
						<td>{{tr.idCustomerSent}}</td>
						<td>{{tr.isCustomerReceive}}</td>
						<td>{{tr.idaccountByIdAccountSent}}</td>
						<td>{{tr.idaccountByIdAccountReceive}}</td>
						<td>{{tr.datetransaction}}</td>
						<td>{{tr.amount}}</td>
						<td>{{tr.idstatustransaction}}</td>
						<td><button class="btn btn-success" ng-click="reportSuccess(tr.idtransaction)">Report</button></td>
					</tr>
				</tbody>
			</table>
			<button class="btn btn-danger" ng-click="reportAllTransaction()">Report All Transaction</button>
	</div>
</div>